package klk.shop.servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class HeaderServlet
 */

public class HeaderServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#HttpServlet()
	 */
	public HeaderServlet() {
		super();

	}

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		response.setContentType("text/html");
		PrintWriter out = response.getWriter();

		out.println("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
		out.println("<html xmlns='http://www.w3.org/1999/xhtml'>");
		out.println("<head>");
		out.println("<meta http-equiv='Content-Type' content='text/html; charset=windows-1252' />");
		out.println("<title>cbm Outlet</title>");
		out.println("<link rel='stylesheet' type='text/css' href='/KlkShop/css/style.css' />");
		out.println("<link rel='stylesheet' href='/KlkShop/css/lightbox.css' type='text/css' media='screen' />");
		out.println("<script src='/KlkShop/js/prototype.js' type='text/javascript'></script>");
		out.println("<script src='/KlkShop/js/scriptaculous.js?load=effects' type='text/javascript'></script>");
		out.println("<script src='/KlkShop/js/lightbox.js' type='text/javascript'></script>");
		out.println("<script type='text/javascript' src='/KlkShop/js/java.js'></script>");
		out.println("</head>");
		out.println("<body>");
		out.println("<div id='wrap'>");
		out.println("<div class='header'>");
		out.println("<div class='logo'><a href='/KlkShop/Home'><img src='/KlkShop/"
				+ "images/cbm_outlet_logo.png' alt='' title='' border='0' /></a></div>");
		out.println("<div id='menu'>");
		out.println("<ul>");
		out.println("<li class='selected'><a href='/KlkShop/Home'>home</a></li>");
		out.println("<li><a href='/KlkShop/About'>about us</a></li>");
		out.println("<li><a href='/KlkShop/Category'>products</a></li>");
		out.println("<li><a href='/KlkShop/Specials'>special offers</a></li>");
		out.println("<li><a href='/KlkShop/MyAccount'>my accout</a></li>");
		out.println("<li><a href='/KlkShop/Register'>register</a></li>");
		out.println("<li><a href='/KlkShop/Help'>Help</a></li>");
		out.println("<li><a href='/KlkShop/Contact'>contact</a></li>");
		out.println("</ul>");
		out.println("</div>");
		out.println("</div>");
		//out.println("<div class='center_content'>");
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
	 *      response)
	 */
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
